package com.xmy.cultivate.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 资料查看教师
 * </p>
 *
 * @author hpiggy
 * @since 2025-11-01
 */
@Data
@TableName("train_promote_look_teacher")
@ApiModel(value = "TrainPromoteLookTeacher对象", description = "资料查看教师")
public class TrainPromoteLookTeacher implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("年份")
    private Integer yearPart;

    @ApiModelProperty("学期")
    private Integer quarterNum;

    @ApiModelProperty("1练课，2备课，字典表type：45")
    private Integer type;

    @ApiModelProperty("1主备，2非主备")
    private Integer teacherType;

    @ApiModelProperty("校区")
    private Long schoolId;

    @ApiModelProperty("教师id")
    private Long teacherId;

    @ApiModelProperty("科目id")
    private Long subjectsId;

    @ApiModelProperty("年级")
    private Integer yearClassId;

    @ApiModelProperty("班型")
    private Long courseTypeId;

    private Integer lessonType;

    @ApiModelProperty("版本id")
    private Long versionId;

    @ApiModelProperty("添加时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @ApiModelProperty("是否删除，0正常，1删除")
    @TableLogic(value = "0", delval = "1")
    @TableField(select = false)
    private Integer deleted;

    @ApiModelProperty("教师姓名")
    @TableField(exist = false)
    private String teacherName;


    @TableField(exist = false)
    private String str;

    // 项目类型
    @TableField(exist = false)
    private String[] typeStr;

    // 班型
    @TableField(exist = false)
    private String[] courseTypeIdStr;


    @TableField(exist = false)
    private String idStr;


}
